<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Insert title here</title>
<link rel="stylesheet" href="/JavaWeb/common/layui/css/layui.css">
</head>
<body>

	<script src="/JavaWeb/common/jquery-3.4.1.min.js"></script>
	<script src="/JavaWeb/common/layui/layui.js"></script>
	<script src="/JavaWeb/common/mylayer.js"></script>
	<script >
		//一般直接写在一个js文件中，使用哪个模块就在这里导入哪个模块
		layui.use(['layer', 'form'], function(){
		  var layer = layui.layer;
		  var form = layui.form;
		  
		  /* layer.msg('Hello World');
		  
		  layer.confirm(
				'您是不是要删除?',
				{icon:3, titile:'提示'},
				function(index) {
					layer.close(index);
				}
		  ); */
		  
		  // open是一个万能方法，可以弹出任何的框
		 /*  layer.open({
				type:2,
				area:['500px', '550px'],
				content: 'http://www.baidu.com'
		  }); */
		  
		  // mylayer.alert('这是一个警告');
		  // mylayer.confirm('页面跳转', '/JavaWeb/student');
		  // mylayer.successMsg('删除成功');
		  mylayer.successUrl('删除成功', '/JavaWeb/student');
		  
		});
	</script> 
</body>
</html>